<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Google Maps JavaScript API Example: Google Bar</title>
    <script src="http://ditu.google.com/maps?hl=zh-CN&amp;file=api&amp;v=2&amp;key=ABQIAAAA91OZMiOe8VfhdtstxQrBBxQMwdEejL6PNWQ60w7dBVYMUBtoYxSzpO8QrLyX6KzYJkpyIz3Q53terg"></script>
    <script type="text/javascript">

    var map;
    var geocoder;
    var address;

    function initialize() {
      if (GBrowserIsCompatible()) {
      var options = {
       listingTypes : "kmlonly"
      };
 
       map = new GMap2(document.getElementById("map_canvas"), {size:new GSize(400, 300),googleBarOptions: {showOnLoad : true}});
       map.setCenter(new GLatLng(39.917, 116.397), 14);
       map.addControl(new GSmallMapControl());
       map.enableGoogleBar();
      }
    }
    
    
    </script>
   </head>
   <body onload="initialize()">
    <div id="map_canvas"></div>
  </body></html>